import http from "@/utils/http";

// 商户信息分页
export const merchantPage = (params)=> http.get('/adminapi/merchants/info/page', params)

// 详情
export const merchantDetail = (id)=> http.get(`/adminapi/merchants/info/detail/${id}`)

// 处理中
export const merchantHandle = (id, data)=> http.post(`/adminapi/merchants/info/handle/${id}`, data)

// 完成
export const merchantFinish = (id)=> http.post(`/adminapi/merchants/info/finish/${id}`)

// 驳回
export const merchantReject = (id)=> http.post(`/adminapi/merchants/info/reject/${id}`)

// 重载
export const merchantsReload = (id)=> http.post(`/adminapi/merchants/info/heavy/load/${id}`)

// 同步菜单
export const merchantsSyncMenu = (id)=> http.post(`/adminapi/merchants/info/sync/menu/${id}`)

// 同步角色
export const merchantsSyncRole = (id)=> http.post(`/adminapi/merchants/info/sync/role/${id}`)

// 列表
export const merchantsList = (params)=> http.get('/adminapi/merchants/info/list', params)